package com.wu01.demo.newdemo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.*;
import com.example.java_learning.converter.SignAgreementConverter;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author wubingcang
 * @desc
 * @date 2024年04月21日 8:47
 */
@Data
@ColumnWidth(20)
@ContentRowHeight(20)
@HeadRowHeight(30)
public class Order {
    @ExcelProperty("订单编号")
    private String payNo;
    @ExcelIgnore
    private String orderName;
    @ExcelProperty(converter = SignAgreementConverter.class)
    private Boolean signAgreement;
    @NumberFormat("0.00_ ")
    private BigDecimal payAmount;
    @DateTimeFormat("yy年MM月dd日 hh时mm分ss秒")
    private LocalDateTime localDateTime;
    private Integer count;
}
